package site.weiyikai.springbootipstarter.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 程序员小魏
 * @create 2022-12-11 18:52
 */
@Data
@ConfigurationProperties(prefix = "tool.ip")
@Component("ipProperties")
public class IpProperties {
    /**
     * 显示日志运行的周期
     */
    private Long cycle = 5L;

    /**
     * 重置日志运行
     */
    private Boolean cycleReset = false;

    /**
     * 选取不同的模式 :  detail：详细模式  simple：极简模式
     */
    private String model = LogModel.DETAIL.value;
    public enum LogModel{
        DETAIL("detail"),
        SIMPLE("simple");
        private String value;
        LogModel(String value) {
            this.value = value;
        }
        public String getValue() {
            return value;
        }
    }

}
